package com.qingcheng.service.system;
import com.qingcheng.entity.PageResult;
import com.qingcheng.pojo.system.Admin;
import com.qingcheng.pojo.system.AdminRole;
import com.qingcheng.pojo.system.Menu;
import com.qingcheng.pojo.system.Resource;

import java.util.*;

/**
 * admin业务逻辑层
 */
public interface AdminService {


    public List<Admin> findAll();


    public PageResult<Admin> findPage(int page, int size);


    public List<Admin> findList(Map<String,Object> searchMap);


    public PageResult<Admin> findPage(Map<String,Object> searchMap,int page, int size);


    public Admin findById(Integer id);

    public void add(AdminRole admin);


    public void update(AdminRole adminRole);


    public void delete(Integer id);

    /**
     * 根据用户名查询对象
     * @param username
     */
    public Admin findAdminByUsername(String username);


    public AdminRole findAdminWithRoleList(Integer id);



    public List<String> getResourceListByAdminId(String admin);

}
